import type { IPageQuery } from '@/api/interface'

export namespace ITArticle {

  // 查询条件
  export interface Query extends IPageQuery {
    userId?: number
    categoryId?: number
    tagId?: number
    articleCover?: string
    articleTitle?: string
    articleContent?: string
    articleType?: number
    isTop?: number
    isDelete?: number
    isRecommend?: number
    status?: number
  }

  // 编辑form表单
  export interface Form {
    id?: number
    userId?: number
    categoryId?: number
    tagId?: number
    articleCover?: string
    articleTitle?: string
    articleCatalogue?: string
    articleContent?: string
    articleType?: number
    isTop?: number
    isDelete?: number
    isRecommend?: number
    status?: number
 }

 //发布文章
  export interface Publish {
    userId?: number | string
    articleTitle?: string
    articleContent?: string
    articleCatalogue?: string
  }

  // list或detail返回结构
  export interface Row {
    id?: number
    userId?: number
    tagId?: number
    categoryId?: number
    articleCover?: string
    articleTitle?: string
    articleCatalogue?: string
    articleContent?: string
    articleType?: number
    isTop?: number
    isDelete?: number
    isRecommend?: number
    status?: number
  }

}